using System;
using L=Science.Physics.GeneralPhysics;

namespace Serway.Chapter39
{
	/// <summary>
	/// Example12: The Energy of a Speedy Proton
	/// (A)	
	/// Find the rest energy of a proton in electron volts.
	/// (B)	
	/// If the total energy of a proton is three times its rest 
	/// energy, what is the speed of the proton?
	/// (C)	
	/// Determine the kinetic energy of the proton in 
	/// electron volts.
	/// (D)	
	/// What is the proton's momentum?
	/// </summary>
	public class Example12
	{
		public Example12()
		{
		}
		private string result;
		public string Result
		{
			get{return result;}
		}
		public void Compute()
		{
			L.Mass  m = new L.Mass();
			m.kg = 1.67E-27;
			double E = L.Relativity.RestEnergy(m);
			result+=Convert.ToString(E/L.Constant.ElementaryCharge)+"\r\n";  
		}
	}
}
